package com.ultimate.management.entity.page;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author LH
 * @Date 2024/3/5 9:09
 * @PackageName com.ultimate.management.entity.page
 * @Description: 分页实体类
 */
@Data
@NoArgsConstructor
public class PagePara {
//    @JsonProperty("")
    private Long pageNo;

    private Long onePageCount;

    private Long dataCount; //总数量

    private Long pageCount;// 总页数

    private Long startIndex; //从哪条数据开始查询

    private String orderBy; //排序字段和排序方式

    public PagePara(long pageNo, long onePageCount, long dataCount, long pageCount) {
        this.pageNo =pageNo;
        this.onePageCount = onePageCount;
        this.dataCount = dataCount;
        this.pageCount = pageCount;
    }

}
